import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router";
import { initRem } from "./utils/rem";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import "vant/lib/index.css"; //vant组件样式

// 初始化leancloud-sdk
import Cloud from "leancloud-storage";
import { BASE, ID, KEY } from "./config";
Cloud.init({
  appId: ID,
  appKey: KEY,
  serverURL: BASE,
});
initRem();
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate); //配置pinia插件
const app = createApp(App);
// app.component('组件名',单文件组件对象)
app.use(pinia); // 状态机注入
app.use(router);
app.mount("#app");
